import React,{Component, PropTypes} from 'react';
import appSelector from '../selectors/appSelector';
import {bindActionCreators} from 'redux';
import { connect } from 'react-redux';

import Header from '../components/header';
import Footer from '../components/footer';

@connect(
    appSelector,
)
class App extends Component {
    static propTypes={
        isLogin: PropTypes.bool.isRequired,
    };
    render() {
        return (
            <div>
                <Header {...this.props}/>
                <div>
                    {this.props.children}
                </div>
                <Footer/>
            </div>
        )
    }
}
export default App;